package main.handleException;

import main.enums.ResultEnum;

public class BizException extends RuntimeException{

	private static final long serialVersionUID = 1L;
	
	private Integer code;
	
	public BizException(String message,Integer code) {
		super(message);
		this.code=code;
	}
	
	public BizException(ResultEnum en) {
		super(en.getMsg());
		this.code=en.getCode();
	}
	
	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}
}
